package 注解;

import java.lang.annotation.*;

/**
 * @author:谢君臣
 * @Date:2021/8/8-19:51
 * @version:1.0
 * @function:
 */

@Target(value = {ElementType.METHOD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.TYPE})  //定义注解使用类型
@Retention(value = RetentionPolicy.RUNTIME) //注解生效地方
@Documented
@Inherited  // 子类是可以继承
public @interface Myinterface {
    String value() default "";
    int num() default -1;
    String[] array() default {"张三","李四"};
}
